package com.example.wo.jsonapplication;

/**
 * Created by WO on 2018/4/11.
 */

public class Book {
     String name;

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    public String getAuthor() {
        return author;
    }

    double price;
     String author;
     public Book(String name,double price,String author){
        author= this.author;
         name=this.name;
         price=this.price;
     }
     public String toString(){
         return "书名:"+name+"价格"+price+"作者"+author;
     }
}

